// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import Client from '@api/parking/api/ParkDashboardApi'

import OneClass from '@api/parking/model/DashboardRoadwayReq'

const CLIENT = CORE.grpcCLIENT(Client)

// ============================== 导出远程接口 ============================== //

export default {
  // —————————————————————————————— 单项 —————————————————————————————— //

  async getOne({ id }, TIP = '查询车道详情') {
    const DTO = CORE.grpcDTO(OneClass, { id: [id] })
    const resp = await CORE.grpc(TIP, CLIENT, 'QueryDashboardRoadway', DTO)
    return resp.roadway || {}
  },
}
